.class public Llt/farmis/libraries/shape_import_android/kml/SaxHandler;
.super Lorg/xml/sax/helpers/DefaultHandler;
.source "SaxHandler.java"


# instance fields
.field private isInCoordinatesTag:Z

.field private isInDescriptionTag:Z

.field private isInGeometryCollectionTag:Z

.field private isInKmlTag:Z

.field private isInLineStringTag:Z

.field private isInLinearRingTag:Z

.field private isInNameTag:Z

.field private isInPointTag:Z

.field private isInUniqueId:Z

.field private isInValue:Z

.field private isInplacemarkTag:Z

.field private mBuffer:Ljava/lang/StringBuffer;

.field private mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

.field private mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 15
    invoke-direct {p0}, Lorg/xml/sax/helpers/DefaultHandler;-><init>()V

    const/4 v0, 0x0

    .line 17
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInKmlTag:Z

    .line 18
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInplacemarkTag:Z

    .line 19
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInNameTag:Z

    .line 20
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInDescriptionTag:Z

    .line 21
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInGeometryCollectionTag:Z

    .line 22
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInLineStringTag:Z

    .line 23
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInPointTag:Z

    .line 24
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInCoordinatesTag:Z

    .line 25
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInLinearRingTag:Z

    .line 26
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInValue:Z

    .line 27
    iput-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInUniqueId:Z

    .line 33
    new-instance v0, Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-direct {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;-><init>()V

    iput-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    return-void
.end method

.method private parseCoordinates(Ljava/lang/String;)Ljava/util/List;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Llt/farmis/libraries/shape_import_android/intefaces/LatLngInterface;",
            ">;"
        }
    .end annotation

    .line 176
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 177
    new-instance v1, Ljava/util/ArrayList;

    const-string v2, "\\s+"

    invoke-virtual {p1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    const/4 p1, 0x0

    const/4 v2, 0x0

    .line 178
    :goto_0
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v2, v3, :cond_0

    .line 179
    new-instance v3, Llt/farmis/libraries/shape_import_android/models/ShapeLatLng;

    .line 180
    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    const/4 v6, 0x1

    aget-object v4, v4, v6

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v6

    .line 181
    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    aget-object v4, v4, p1

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    invoke-direct {v3, v6, v7, v4, v5}, Llt/farmis/libraries/shape_import_android/models/ShapeLatLng;-><init>(DD)V

    .line 182
    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-object v0
.end method


# virtual methods
.method public characters([CII)V
    .locals 2

    .line 142
    iget-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInNameTag:Z

    if-eqz v0, :cond_1

    .line 143
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    if-nez v0, :cond_0

    .line 144
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    new-instance v1, Llt/farmis/libraries/shape_import_android/kml/Placemark;

    invoke-direct {v1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;-><init>()V

    invoke-virtual {v0, v1}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->setCurrentPlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V

    .line 146
    :cond_0
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    new-instance v1, Ljava/lang/String;

    invoke-direct {v1, p1, p2, p3}, Ljava/lang/String;-><init>([CII)V

    invoke-virtual {v0, v1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->setTitle(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 147
    :cond_1
    iget-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInDescriptionTag:Z

    if-eqz v0, :cond_3

    .line 148
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    if-nez v0, :cond_2

    .line 149
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    new-instance v1, Llt/farmis/libraries/shape_import_android/kml/Placemark;

    invoke-direct {v1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;-><init>()V

    invoke-virtual {v0, v1}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->setCurrentPlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V

    .line 151
    :cond_2
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    new-instance v1, Ljava/lang/String;

    invoke-direct {v1, p1, p2, p3}, Ljava/lang/String;-><init>([CII)V

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->setDescription(Ljava/lang/String;)V

    goto :goto_1

    .line 152
    :cond_3
    iget-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInUniqueId:Z

    if-eqz v0, :cond_5

    iget-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInValue:Z

    if-eqz v0, :cond_5

    .line 153
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    if-nez v0, :cond_4

    .line 154
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    new-instance v1, Llt/farmis/libraries/shape_import_android/kml/Placemark;

    invoke-direct {v1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;-><init>()V

    invoke-virtual {v0, v1}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->setCurrentPlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V

    .line 156
    :cond_4
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    new-instance v1, Ljava/lang/String;

    invoke-direct {v1, p1, p2, p3}, Ljava/lang/String;-><init>([CII)V

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->setUniqueId(Ljava/lang/String;)V

    goto :goto_1

    .line 157
    :cond_5
    iget-boolean v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInCoordinatesTag:Z

    if-eqz v0, :cond_7

    .line 158
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    if-nez v0, :cond_6

    .line 159
    new-instance v0, Llt/farmis/libraries/shape_import_android/kml/Placemark;

    invoke-direct {v0}, Llt/farmis/libraries/shape_import_android/kml/Placemark;-><init>()V

    .line 160
    iget-object v1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    invoke-virtual {v0, v1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->setType(Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;)V

    .line 161
    iget-object v1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v1, v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->setCurrentPlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V

    goto :goto_0

    .line 163
    :cond_6
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object v0

    iget-object v1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    invoke-virtual {v0, v1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->setType(Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;)V

    .line 165
    :goto_0
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mBuffer:Ljava/lang/StringBuffer;

    invoke-virtual {v0, p1, p2, p3}, Ljava/lang/StringBuffer;->append([CII)Ljava/lang/StringBuffer;

    :cond_7
    :goto_1
    return-void
.end method

.method public endDocument()V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/xml/sax/SAXException;
        }
    .end annotation

    return-void
.end method

.method public endElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/xml/sax/SAXException;
        }
    .end annotation

    const-string p1, "kml"

    .line 96
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    const/4 p3, 0x0

    if-eqz p1, :cond_0

    .line 97
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInKmlTag:Z

    goto/16 :goto_0

    :cond_0
    const-string p1, "Placemark"

    .line 98
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 99
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInplacemarkTag:Z

    .line 101
    iget-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {p1}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object p1

    invoke-virtual {p1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->getTitle()Ljava/lang/String;

    move-result-object p1

    const-string p2, "Route"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 102
    iget-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {p1}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object p2

    invoke-virtual {p1, p2}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->setRoutePlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V

    goto/16 :goto_0

    .line 104
    :cond_1
    iget-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {p1}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->addCurrentPlacemark()V

    goto/16 :goto_0

    :cond_2
    const-string p1, "name"

    .line 106
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 107
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInNameTag:Z

    goto/16 :goto_0

    :cond_3
    const-string p1, "description"

    .line 108
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 109
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInDescriptionTag:Z

    goto/16 :goto_0

    :cond_4
    const-string p1, "GeometryCollection"

    .line 110
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 111
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInGeometryCollectionTag:Z

    goto/16 :goto_0

    :cond_5
    const-string p1, "LineString"

    .line 112
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_6

    .line 113
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInLineStringTag:Z

    .line 114
    iput-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    goto :goto_0

    :cond_6
    const-string p1, "LinearRing"

    .line 115
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_7

    .line 116
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInLinearRingTag:Z

    .line 117
    iput-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    goto :goto_0

    :cond_7
    const-string p1, "Point"

    .line 118
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_8

    .line 119
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInPointTag:Z

    .line 120
    iput-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    goto :goto_0

    :cond_8
    const-string p1, "Data"

    .line 121
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_9

    .line 122
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInUniqueId:Z

    goto :goto_0

    :cond_9
    const-string p1, "value"

    .line 123
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_a

    .line 124
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInValue:Z

    goto :goto_0

    :cond_a
    const-string p1, "coordinates"

    .line 125
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_b

    .line 126
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInCoordinatesTag:Z

    .line 127
    iget-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mBuffer:Ljava/lang/StringBuffer;

    if-eqz p1, :cond_b

    invoke-virtual {p1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_b

    .line 128
    iget-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mBuffer:Ljava/lang/StringBuffer;

    invoke-virtual {p1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->parseCoordinates(Ljava/lang/String;)Ljava/util/List;

    move-result-object p1

    .line 129
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p2

    if-nez p2, :cond_b

    .line 130
    iget-object p2, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-virtual {p2}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;

    move-result-object p2

    invoke-virtual {p2, p1}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->addCoordinates(Ljava/util/List;)V

    :cond_b
    :goto_0
    return-void
.end method

.method public getParsedData()Llt/farmis/libraries/shape_import_android/kml/DataSet;
    .locals 1

    .line 37
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    return-object v0
.end method

.method public startDocument()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/xml/sax/SAXException;
        }
    .end annotation

    .line 42
    new-instance v0, Llt/farmis/libraries/shape_import_android/kml/DataSet;

    invoke-direct {v0}, Llt/farmis/libraries/shape_import_android/kml/DataSet;-><init>()V

    iput-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    return-void
.end method

.method public startElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/xml/sax/SAXException;
        }
    .end annotation

    const-string p1, "kml"

    .line 58
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    const/4 p3, 0x1

    if-eqz p1, :cond_0

    .line 59
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInKmlTag:Z

    goto/16 :goto_0

    :cond_0
    const-string p1, "Placemark"

    .line 60
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 61
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInplacemarkTag:Z

    .line 62
    iget-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mDataSet:Llt/farmis/libraries/shape_import_android/kml/DataSet;

    new-instance p2, Llt/farmis/libraries/shape_import_android/kml/Placemark;

    invoke-direct {p2}, Llt/farmis/libraries/shape_import_android/kml/Placemark;-><init>()V

    invoke-virtual {p1, p2}, Llt/farmis/libraries/shape_import_android/kml/DataSet;->setCurrentPlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V

    goto/16 :goto_0

    :cond_1
    const-string p1, "name"

    .line 63
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 64
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInNameTag:Z

    goto/16 :goto_0

    :cond_2
    const-string p1, "description"

    .line 65
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 66
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInDescriptionTag:Z

    goto/16 :goto_0

    :cond_3
    const-string p1, "GeometryCollection"

    .line 67
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 68
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInGeometryCollectionTag:Z

    goto :goto_0

    :cond_4
    const-string p1, "LineString"

    .line 69
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 70
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInLineStringTag:Z

    .line 71
    sget-object p1, Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;->LINE:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    iput-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    goto :goto_0

    :cond_5
    const-string p1, "LinearRing"

    .line 72
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_6

    .line 73
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInLinearRingTag:Z

    .line 74
    sget-object p1, Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;->POLYGON:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    iput-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    goto :goto_0

    :cond_6
    const-string p1, "Point"

    .line 75
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_7

    .line 76
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInPointTag:Z

    .line 77
    sget-object p1, Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;->POINT:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    iput-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mType:Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    goto :goto_0

    :cond_7
    const-string p1, "Data"

    .line 78
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_8

    const/4 p1, 0x0

    .line 79
    invoke-interface {p4, p1}, Lorg/xml/sax/Attributes;->getValue(I)Ljava/lang/String;

    move-result-object p1

    const-string p2, "uniqueId"

    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_a

    .line 80
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInUniqueId:Z

    goto :goto_0

    :cond_8
    const-string p1, "value"

    .line 82
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_9

    .line 83
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInValue:Z

    goto :goto_0

    :cond_9
    const-string p1, "coordinates"

    .line 84
    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_a

    .line 85
    new-instance p1, Ljava/lang/StringBuffer;

    invoke-direct {p1}, Ljava/lang/StringBuffer;-><init>()V

    iput-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->mBuffer:Ljava/lang/StringBuffer;

    .line 86
    iput-boolean p3, p0, Llt/farmis/libraries/shape_import_android/kml/SaxHandler;->isInCoordinatesTag:Z

    :cond_a
    :goto_0
    return-void
.end method
